package com.zsl.swing.redis.desktop.model;

import com.zsl.swing.redis.desktop.utils.StringUtils;

public class FontSizeConfigEntity {

    private int window;

    private int menu;

    private int tree;

    private int cmdArea;

    private int logArea;

    private int table = 10;

    public int getTable() {
        return table;
    }

    public void setTable(int table) {
        this.table = table;
    }

    public String getFontName() {
        return StringUtils.isEmpty(fontName)? "宋体": fontName;
    }

    public void setFontName(String fontName) {
        this.fontName = fontName;
    }

    private String fontName;

    public  static FontSizeConfigEntity defaultConfig(){
        FontSizeConfigEntity config = new FontSizeConfigEntity();
        config.setWindow(18);
        config.setCmdArea(18);
        config.setLogArea(14);
        config.setTree(15);
        config.setMenu(15);
        config.setTable(10);
        config.setFontName("宋体");
        return config;
    }

    public int getMenu() {
        return menu;
    }

    public void setMenu(int menu) {
        this.menu = menu;
    }

    public int getWindow() {
        return window;
    }

    public void setWindow(int window) {
        this.window = window;
    }

    public int getTree() {
        return tree;
    }

    public void setTree(int tree) {
        this.tree = tree;
    }

    public int getCmdArea() {
        return cmdArea;
    }

    public void setCmdArea(int cmdArea) {
        this.cmdArea = cmdArea;
    }

    public int getLogArea() {
        return logArea;
    }

    public void setLogArea(int logArea) {
        this.logArea = logArea;
    }
}
